//
//  ComprehensiveTableViewController.swift
//  HuaYun
//
//  Created by enghou on 2019/1/15.
//  Copyright © 2019 xyxorigation. All rights reserved.
//

import UIKit

class ComprehensiveTableViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
    }

    override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
        return 10
    }
    
    override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        let view = UIView()
        view.backgroundColor = UIColor.dftBack
        return view
    }
    
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        if segue.identifier == "IncomeCost" {
            if let dest = segue.destination as? IncomeCostListViewController {
                dest.planType = "60"
            }
        } else if segue.identifier == "DevelopCost" {
            if let dest = segue.destination as? IncomeCostListViewController {
                dest.planType = "100"
            }
        } else if segue.identifier == "" {
            if let dest = segue.destination as? IncomeCostListViewController {
                dest.planType = "100"
            }
        }
        
    }

}
